package models.vo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;

public class SupervisorSaleVO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3163638741517621531L;
	Long shopId;
	String shopCode;
	String shopName;
	Long staffId;
	String staffCode;
	String staffName;
	Float lat;
	Float lng;
	private Integer dhKH;
	private Integer dhTH;
	BigDecimal dayAmountPlan;
	BigDecimal dayAmount;
	
	public Long getShopId() {
		return shopId;
	}
	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}
	public String getShopCode() {
		return shopCode;
	}
	public void setShopCode(String shopCode) {
		this.shopCode = shopCode;
	}
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	public Long getStaffId() {
		return staffId;
	}
	public void setStaffId(Long staffId) {
		this.staffId = staffId;
	}
	public String getStaffCode() {
		return staffCode;
	}
	public void setStaffCode(String staffCode) {
		this.staffCode = staffCode;
	}
	public String getStaffName() {
		return staffName;
	}
	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}
	public Float getLat() {
		return lat;
	}
	public void setLat(Float lat) {
		this.lat = lat;
	}
	public Float getLng() {
		return lng;
	}
	public void setLng(Float lng) {
		this.lng = lng;
	}
	public Integer getDhKH() {
		return dhKH;
	}
	public void setDhKH(Integer dhKH) {
		this.dhKH = dhKH;
	}
	public Integer getDhTH() {
		return dhTH;
	}
	public void setDhTH(Integer dhTH) {
		this.dhTH = dhTH;
	}
	public BigDecimal getDayAmountPlan() {
		return dayAmountPlan;		
	}
	public void setDayAmountPlan(BigDecimal dayAmountPlan) {
		this.dayAmountPlan = dayAmountPlan;
	}
	public BigDecimal getDayAmount() {
		return dayAmount;
	}
	public void setDayAmount(BigDecimal dayAmount) {
		this.dayAmount = dayAmount;
	}
	public BigDecimal getDayAmountLeft() {
		BigDecimal dayAmountLeft = null;
		dayAmountLeft = dayAmountPlan != null && dayAmount != null && dayAmountPlan.compareTo(dayAmount) > 0 ? dayAmountPlan.subtract(dayAmount) : BigDecimal.ZERO;
		BigDecimal __dayAmountLeft = dayAmountLeft.divide(BigDecimal.valueOf(1000)).setScale(0, RoundingMode.HALF_DOWN);
		return __dayAmountLeft;
	}
}
